<?php

namespace App\Console\Commands;

use App\Models\Base\ServerList;
use Illuminate\Console\Command;

class ServerActivityPlan extends Command
{
    /**
     * The name and signature of the console command.
     *
     * @var string
     */
    protected $signature = 'server:activityPlan';

    /**
     * The console command description.
     *
     * @var string
     */
    protected $description = '自动开活动';

    /**
     * Create a new command instance.
     *
     * @return void
     */
    public function __construct()
    {
        parent::__construct();
    }

    /**
     * Execute the console command.
     *
     * @return mixed
     */
    public function handle()
    {
        $servers = ServerList::where([['is_open_activity','=',0],['merge_tag','=',0]])->get();
        dd($servers);
    }
}
